﻿@model _1._6._2015_MovieTheater.Models.MoviesViewModel
@{
    ViewBag.Title = "Movie Page";
}

<div class="jumbotron">
    <h1>Movie Theater</h1>
</div>


<div class="row">
    <div class="col-md-12">
        <h2>Current Movies</h2>
        <table class="table table-striped table-bordered">
            <tr>
                <th>Movie Title</th>
            </tr>
            @foreach (var movie in Model.Movies)
            {
               
                <tr>
                    <td>@Html.ActionLink(@movie.Title, "Detail", new { Title = @movie.Title, Description = @movie.Description, PosterUrl = @movie.PosterUrl, Rating = @movie.Rating })</td>
                </tr>
            }

        </table>

    </div>

</div>